package com.cloudcc.mobile.manager;

import com.cloudcc.mobile.AppContext;
import com.litesuits.orm.LiteOrm;

/**
 * @Description: rommanager
 * @author wangzhiqiang
 * @date 2015-12-16 下午5:45:11
 * 
 */
public class OrmManager {

	private static LiteOrm liteOrm;
	private static OrmManager instance;

	private OrmManager() {
	}

	public synchronized LiteOrm getOrm() {
		if (liteOrm == null) {
			liteOrm = LiteOrm.newSingleInstance(AppContext.getInstance(),
					"cloudcc.db");
		}
		return liteOrm;
	}

	public synchronized static OrmManager getManager() {
		if (instance == null) {
			instance = new OrmManager();
		}
		return instance;
	}

}
